home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip: Special Tips & Tricks for Windows 95
/
Chip Wintips.iso
/
zeszyt
/
winbatch
/
sysinfo.wb_
< prev
next >
Wrap
Text File
|
1995-08-17
|
3KB
|
104 lines
CR=strcat(Num2char(13),Num2Char(10))
TAB=Num2Char(9)
BoxOpen("SysInfo","Sysinfo is examining your system.%cr%Please wait.")
wintype="retail"
if WinMetrics(22) then wintype="debug"
wcx=WinMetrics(-4)
math="Math"
switch wcx
case 1
case 2
case 3
cpu= ItemExtract(6,WinSysInfo(),@tab)
wc=WinConfig()
if !(wc&1) then mode="Real"
if wc&16 then mode="Standard"
if wc&32 then mode="Enhanced"
if wc&64 then cpu=8086
if wc&128 then cpu=80186
if wc&2 then cpu=286
if wc&4 then cpu=386
if wc&8 then cpu=486
mode = strcat(mode,' ',wintype,' Windows ')
if !(wc&1024) then math="No math"
break
case 4
cpu= ItemExtract(6,WinSysInfo(),@tab)
wcy=WinMetrics(-3)
switch wcy
case 1 ; Win32 Intel
mode="Intel 32-bit %wintype% Windows "
break
case 2 ; Dec Alpha
mode="DEC Alpha %wintype% Windows NT "
break
case 3 ; MIPS
mode="MIPS %wintype% Windows NT "
break
case 4 ; PowerPC
mode="PowerPC %wintype% Windows NT "
break
endswitch
case 5
cpu= ItemExtract(6,WinSysInfo(),@tab)
mode="Intel 32-bit %wintype% Windows 95+ Ver "
break
case wcx ; Unknown
cpu= ItemExtract(6,WinSysInfo(),@tab)
mode="Unknown platform %wintype% Windows "
break
endswitch
Sysinfo=strcat(cpu,' ',mode,WinVersion(1),'.',WinVersion(0),CR)
mouse="No Mouse"
if WinMetrics(19) then mouse="Mouse"
Sysinfo=strcat(sysinfo,math," co-processor. ",mouse,' available.',CR)
sysinfo=strcat(sysinfo,WinMetrics(0),'x',WinMetrics(1)," video resolution. ",WinMetrics(-1)," colors.",CR)
ErrorMode(@OFF)
LastError()
PlayMedia("Status WaveForm Ready")
ErrorMode(@CANCEL)
if LastError()!=1193 then sysinfo=strcat(sysinfo,"Windows multimedia extensions present.",CR)
math=NetInfo(0)
if math=="MULTINET" then math=strcat(math,"/",NetInfo(1))
sysinfo=strcat(sysinfo,math," Network installed.",CR)
bug=WinResources(11)/1024 ; Get Physical memory avail
sysinfo=strcat(sysinfo,CR,bug," KB Physical Memory",CR)
bug=(WinResources(14)/1024)+bug ; Get Virtual memory + Physical avail
sysinfo=strcat(sysinfo,bug," KB Total Memory",CR)
sysinfo=strcat(sysinfo,"Console ",DosVersion(1),'.',DosVersion(0)," using ",environment("COMSPEC"),CR)
disks=DiskScan(1)
disks=strreplace(disks,@tab," ")
if disks!="" then sysinfo=strcat(sysinfo,"Floppies ",disks,CR)
disks=DiskScan(2)
disks=strreplace(disks,@tab," ")
if disks!="" then sysinfo=strcat(sysinfo,"Hard Disks ",disks,CR)
disks=DiskScan(4)
disks=strreplace(disks,@tab," ")
if disks!="" then sysinfo=strcat(sysinfo,"Network Disks ",disks,CR)
sysinfo=strcat(sysinfo,"Windows Directory ",DirWindows(0),CR)
sysinfo=strcat(sysinfo,"System Directory ",DirWindows(1),CR)
sysinfo=strcat(sysinfo,CR,"WIL Interpreter Ver ",VersionDll())
ver=Version()
Message("WinBatch %ver% SysInfo",Sysinfo)